<%= javascript_include_tag "fckeditor/fckeditor" %>


<div class='form'>
  <% form_for @article,:html=>{:multipart=>true} do |f| %>
    <%= f.error_messages %>

    <p>
      <label for="article─article_type">文章类型</label>
      <%=select("article", "article_type",Article::TYPE,:prompt => "请选择..")%>
    </p>

    <p>
      <label for="article_title">标题</label>
      <%= f.text_field :title %>
    </p>

    <p>
      <label for="article_content">内容</label>
     <div id="<%= fckeditor_div_id('article', 'content') %>">
      <%= fckeditor_textarea( "article", "content" ,:toolbarSet => 'Simple', :width => '700', :height => '600') %>
    </div>
    </p>

    <p>
      <label for="article_top">置顶</label>
      <%= f.check_box :top %>
    </p>
    <p>
      <label for="article_active">可用</label>
      <%= f.check_box :active %>
    </p>

    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>